package com.woniu.platform.contorller;

import com.woniu.platform.entity.PlatformAuditRecord;
import com.woniu.platform.service.PlatformAuditRecordService;
import com.woniu.util.utils.HttpResult;
import com.woniu.util.utils.RequestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auditRecord")
public class PlatformAuditRecordController {

    @Autowired(required = false)
    private PlatformAuditRecordService auditRecordService;

    /**
     * 新增融资企业审核记录
     */
    @PostMapping("/insertAuditRecord")
    public HttpResult insertAuditRecord(@RequestBody PlatformAuditRecord platformAuditRecord){
        return auditRecordService.insertAuditRecord(platformAuditRecord);
    }

    @PostMapping("/queryAuditRecord")
    public HttpResult queryAuditRecord(@RequestBody RequestResult<PlatformAuditRecord> requestResult){
        return auditRecordService.queryAuditRecord(requestResult);
    }
}
